package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.CommissionRate;
import com.weipai.springboot.model.Freight;

import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/09/01 10:57
 */
public interface SystemDao {

    //保存员工提成比例
    int saveCommissionRate(CommissionRate commissionRate);

    //根据类型获得比例
    Map<String,Object> getCommissionRateByType(Integer type);

    //修改提成比例
    int updateCommissionRateById(Integer id, Integer rate);
    
    //获取运费
    Freight getFreight();

    //修改运费
    int updateFreight(Integer freightId, Integer fullPackage, Integer freight);
}
